package com.cortext.pineapple.link;

import java.util.List;

import com.cortex.pineapple.fetch.RequestData.SOURCE_TYPE;

public class NewsLink extends Link{

	private String description,source,date;
	private String imageUrl;

	
	public NewsLink(String id, String title, String url, String description,
			String source, String date) {
		super(id,title,url);
		this.description = description;
		this.source = source;
		this.date = date;
	}
	public NewsLink(String id, String title, String url, String description,
			String source, String date,String imageUrl) {
		super(id,title,url);
		this.description = description;
		this.source = source;
		this.date = date;
		this.imageUrl = imageUrl;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
		if(onDataChangedListener != null){
			onDataChangedListener.dataChanged(this);
		}
	}
	@Override
	public SOURCE_TYPE getSourceType() {
		return SOURCE_TYPE.NEWS;
	}
}
